package myadmin.jtthink.com.MyHttp;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;


@RestController
public class MyHttp {

   @RequestMapping(value = "/{serviceName:\\w+}/{methodName:\\w+}",method = {RequestMethod.GET,RequestMethod.POST})
    public Object forGet(@PathVariable("serviceName") String sname,
                              @PathVariable("methodName") String mname, HttpServletRequest httpRequest) throws Exception {

      return null;
   }
}
